﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OkTool.Util
{
    /// <summary>
    /// ID生成器工具类
    /// </summary>
    public class IdUtil
    {
        /// <summary>
        /// 获取随机GUID
        /// </summary>
        /// <returns></returns>
        public static string RandomGuid()
        {
            return Guid.NewGuid().ToString();
        }

        /// <summary>
        /// 简化的GUID,去掉了横线
        /// </summary>
        /// <returns></returns>
        public static string SimpleGuid()
        {
            return Guid.NewGuid().ToString("N");
        }
    }
}
